package com.company4;

import com.company4.file.CreatFiles;
import com.company4.file.CreatFolders;

public class CreateFoldersAndFiles {
    public static void createFoldersAndFiles(){
        String[] dirs = new String[]{
                "D:\\Homwork\\目录1\\",
                "D:\\Homwork\\目录1\\目录1.1\\",
                "D:\\Homwork\\目录1\\目录1.1\\目录1.1.1\\",
                "D:\\Homwork\\目录1\\目录1.2\\",
                "D:\\Homwork\\目录1\\目录1.2\\目录1.2.1\\",
                "D:\\Homwork\\目录1\\目录1.2\\目录1.2.2\\"
        };
        String[] files = new String[]{
                "test1.txt",
                "test1.1.txt",
                "test1.1.1.txt",
                "test1.2.txt",
                "test1.2.1.txt",
                "test1.2.2.txt",
        };
        int i=0;
        while(i<6){
            CreatFolders.createFolders(dirs[i]);
            CreatFiles.createFiles(dirs[i], files[i]);
            i++;
        }
    }
}
